package day2;

/**
 * @author joker
 * @date 2022/4/22 0022 - 22:11
 */
public abstract class Animal {
    public int a = 1;
    private int b = 2;
    protected int c = 3;
    final int d = 4;
    public static int e = 5;

    public void m1() {
        System.out.println("public的m1方法");
    }

    void m2() {
        System.out.println("缺省的m2方法");
    }

    private void m3() {
        System.out.println("private的m3方法");
    }

    final void m4() {
        System.out.println("final的m4方法");
    }
    static void m8(){
        System.out.println("static的m8方法");
    }
    public abstract void m5();
    public abstract void m6();
    protected abstract void m7();
}
